<form id="add-form" class="form-horizontal xc-detailpage-div" role="form" data-toggle="validator" method="POST" action="">
    <div class="xc-grouptitle">主题配色</div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Xpframework_dmoapply_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xpframework_dmoapply_id" data-rule="required" data-source="xpframework/dmoapply/index" class="form-control selectpage" name="row[xpframework_dmoapply_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Xpframework_dmocategory_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xpframework_dmocategory_id" data-rule="required" data-source="xpframework/dmocategory/index" class="form-control selectpage" name="row[xpframework_dmocategory_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Xpframework_dmocategory_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xpframework_dmocategory_ids" data-rule="required" data-source="xpframework/dmocategory/index" data-multiple="true" class="form-control selectpage" name="row[xpframework_dmocategory_ids]" type="text" value="">
        </div>
    </div>
    <div class="xc-grouptitle">主题配色</div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Types')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-types" class="form-control selectpicker" multiple="" name="row[types][]">
                {foreach name="typesList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Isread')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-isread" class="form-control selectpicker" name="row[isread]">
                {foreach name="isreadList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="xc-detail-group-title">主题配色</div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Bannerimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-bannerimage" class="form-control" size="50" name="row[bannerimage]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-bannerimage" class="btn btn-danger faupload" data-input-id="c-bannerimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-bannerimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-bannerimage" class="btn btn-primary fachoose" data-input-id="c-bannerimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-bannerimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-bannerimage"></ul>
        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group col-xs-6">
        <label class="control-label col-xs-12 col-sm-4">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-4"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
